<?php

function ifsetor(&$mVariable,$mDefault = null){

    return isset($mVariable) ? $mVariable : $mDefault;

} //

function ifneor(&$mVariable, $mDefault = null){

	return !empty($mVariable) ? $mVariable : $mDefault;

}

function array_fill_key_incremental($nElements, $mValue=null, $nStart = 0, $sPattern = null){

	if ($sPattern == null){

		$sPattern = '%d';
	}

	$aResult = array();

	for($nCurrent=intval($nStart); $nCurrent<intval($nStart)+intval($nElements); $nCurrent++){

		$aResult[sprintf($sPattern,$nCurrent)] = $mValue;

	} // for

	return $aResult;

} // function


?>